//
//  ArticleDetailRequest.m
//  HONGQIYUN
//
//  Created by 余海华 on 2016/12/23.
//  Copyright © 2016年 Haidi. All rights reserved.
//

#import "ArticleDetailRequest.h"

@implementation ArticleDetailRequest {
    
    NSString *_articlId;
    
}
-(id) initRequestWithId:(NSString *) articlId {
    
    
    if (self = [super init]) {
        _articlId = articlId;
    }
    return self;
}

-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

-(NSString *)requestUrl
{
    return @"/tools/getdata.ashx?types=get_article";
}

-(id)requestArgument
{
    return @{
             @"id": [_articlId length]?_articlId:@"",
             };
}

@end
